
package robotinterface.list.entry;

import java.util.concurrent.Callable;
import robotinterface.client.*;

/**
 *
 * @author Brian Bailey
 */
public class ListTask implements Callable<String> {

    Entry entry;
    public ListTask(Entry e)
    {
        entry = e;
    }

    @Override
    public String call() throws Exception
    {
        return processEntry(entry);
    }

    private String processEntry(Entry entry)
    {        
        RobotClient.sendMessage( entry.getTitle() );
        return entry.getTitle();
    }

}
